@import (reference) '../../common/variables.less';

.article {
  margin-bottom: 100px;

  &-title {
    text-align: left;
    margin-bottom: 30px;
  }

  &-description {
    margin-top: 24px;

    @media @lg-xl {
      width: 50%;
    }
  }

  &-heading {
    color: @landing-blue;
  }

  &-content {
    display: block;
    margin-bottom: 30px;

    @media @md-xl {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      grid-template-areas:
        'first second third'
        'first fourth fifth';
      margin-bottom: 50px;
      grid-gap: 10px;
    }
  }

  &-link {
    display: block;
    overflow: hidden;
    text-decoration: none;
    color: inherit;

    border: 2px solid @light-blue-bg;
    border-radius: 10px;
    padding: 10px;

    &:hover {
      text-decoration: none;
      color: inherit;
      background: @light-blue-bg;
    }

    @media @md-xl {
      padding: 20px;
      height: 100%;
    }
  }

  &-item {
    margin-bottom: 1rem;
    @media @md-xl {
      margin-bottom: 0;
    }

    &-title {
      font-weight: 500;
      font-size: 20px;
    }

    &-taglist {
      display: flex;
      flex-wrap: wrap;
      margin: 10px 0;

      &-tag {
        flex: 0 0 auto;
        padding: 0 5px 0 0;
        color: @landing-sec-blue;
        font-size: 0.875rem;
        font-weight: 500;
      }
    }

    &-date {
      font-size: 0.875rem;
      opacity: 0.6;
      height: 1.5rem;
      color: inherit;
      margin: 20px 0;
      text-align: start;
    }

    &-img {
      margin-bottom: 1rem;

      @media @sm {
        margin-bottom: 0;

        &-container {
          width: 40%;
          float: left;
          margin-right: 1rem;
        }
      }

      &.esl-image {
        height: auto;
      }
    }

    &-description {
      font-size: 1rem;

      @media @md-xl {
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
      }
    }
  }

  &-1 {
    grid-area: first;
  }
  &-2 {
    grid-area: second;
  }
  &-3 {
    grid-area: third;
  }
  &-4 {
    grid-area: fourth;
  }
  &-5 {
    grid-area: fifth;
  }

  &-btn {
    display: flex;
    justify-content: center;
  }
}
